import csv
import os
import time
from openai import OpenAI

# ========== 配置 ==========
DEEPSEEK_API_KEY = "sk-d1b11661d8e14774b11d638e5904c321"

client = OpenAI(api_key=DEEPSEEK_API_KEY, base_url="https://api.deepseek.com")
f_ctx = open("./context.txt", "r", encoding="utf-8")
context = f_ctx.read()
f_ctx.close()


response = client.chat.completions.create(
    model="deepseek-chat",
    messages=[
        {
            "role": "system",
            "content": ""
        },
        {
            "role": "user", 
            "content": context
        }
    ],
    stream=False
)